               <tr>
                <?php foreach ($fields as $field_name => $title):?>
                    <td class="<?php echo !empty($class) ? $class : ''?>">
                    <?php
                        $method = 'get' .sfInflector::camelize($field_name);
                        echo $object->$method();
                     ?>
                     </td>
                <?php endforeach;?>
                </tr>